home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- #
- # Get the OS version number from the eoe1 software image
- # All IRIX systems must have eoe1.sw.unix installed.
- #
- vnum=`/usr/sbin/versions -n eoe1.sw.unix | /usr/bin/tail -1 | /usr/bin/awk '{print $3}'`
- hostname=`/usr/bsd/hostname`
-
- OS52="IRIX 5.2"
- OS53="IRIX 5.3"
- OS601="IRIX 6.0.1"
-
- # Parse the version number
- case $vnum in
- # IRIX 5.2
- 1011009700) os="$OS52";;
- # IRIX 5.2 for Onyx Extreme
- 1011168200) os="$OS52 for Onyx Extreme";;
- # IRIX 5.2 for Indy R4600PC & Challenge S
- 1011112900) os="$OS52 for Indy R4600PC & Challenge S";;
- # IRIX 5.2 for Indy R4600SC/XZ & Presenter
- 1011372420) os="$OS52 for Indy R4600SC/XZ & Presenter";;
- # IRIX 5.2 for TKO Onyx
- 1011410520) os="$OS52 for TKO Onyx";;
- # IRIX 5.2-200MHz Challenge and Onyx
- 1011538120) os="$OS52 for Challenge/Onyx";;
- # IRIX 5.3
- 1021572036) os="$OS53";;
- # IRIX 5.3 for Indy R4400 175Mhz
- 1021835920) os="$OS53 for Indy R4400 175Mhz";;
- # IRIX 5.3 with XFS
- 1021725920) os="$OS53 with XFS";;
- # IRIX 6.0.1
- 1121688834) os="$OS601";;
- # IRIX 6.0.1 with XFS
- 1121948034) os="$OS601 with XFS 2.0";;
- # Some other version number
- *) /bin/echo "\n${hostname} is not at a version of IRIX that this script recognizes.\n";exit 1;;
- esac
-
- /bin/echo "\n${hostname} is currently running ${os}.\n"
-